package com.jp.security.service.impl;

import com.jp.security.service.MyUserDetailsService;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class MyUserDetailsServiceImpl implements MyUserDetailsService {





    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        //todo 1.用户校验 从数据库查用户 ，存在则进行下一步，不存在就抛出异常

        // todo 2.查询角色与权限

        // todo 3. 校验通过存入redis

        return null;
    }
}
